import Vue from 'vue'
import VueRouter from 'vue-router'

Vue.use(VueRouter);

const routes = [
	{
		path: '/',
		component: () => import('views/Home'),
		children: [
			{
				path: '/inputbox',
				component: () => import('components/input/InputBox')
			},
			{
				path: '/table1',
				component: () => import('components/table/Table1')
			},
			{
				path: '/table2',
				component: () => import('components/table/Table2')
			},
			{
				path: '/descriptions',
				component: () => import('components/descriptions/Descriptions')
			},
			{
				path: '/layout1',
				component: () => import('components/layout/Layout1')
			},
			{
				path: '/layout2',
				component: () => import('components/layout/Layout2')
			},
			{
				path: '/dialog',
				component: () => import('components/dialog/MyDialogTest')
			},
			{
				path: '/drag',
				component: () => import('components/drag/MyDrag')
			},
			{
				path: '/confirm',
				component: () => import('components/confirm/ConfirmBoxTest')
			},
			{
				path: '/form1',
				component: () => import('components/form/MyFormTest')
			},
			{
				path: '/topNavMenu',
				component: () => import('components/NavMenu/TopNavMenu')
			},
			{
				path: '/elDialogTest',
				component: () => import('components/dialog2/ElDialogTest')
			},
			{
				path: '/dialogTest3',
				component: () => import('components/dialog3/MyDialog3Test')
			},
			{
				path: '/dialogTest4',
				component: () => import('components/dialog4/MyDialogTest.vue')
			},
			{
				path: '/dialogTest5',
				component: () => import('components/dialog5/MyDialogTest5.vue')
			},
			{
				path: '/dialogTest6',
				component: () => import('components/dialog6/MyDialogTest6.vue')
			},
			{
				path: '/dialogTest7',
				component: () => import('components/dialog7/MyDialogTest7.vue')
			},
			{
				path: '/dialogTest8',
				component: () => import('components/dialog8/FormDialogTest.vue')
			},
			{
				path: '/dialogTest9',
				component: () => import('components/dialog9/MyDialogTest9.vue')
			},
			{
				path: '/treeSelect',
				component: () => import('components/TreeSelect/TreeSelectTest')
			},
			{
				path: '/selectTest',
				component: () => import('components/select/SelectTest')
			},
			{
				path: '/treedemo',
				component: () => import('components/tree/MyTreeDemo')
			},
			{
				path: '/dragSort',
				component: () => import('components/drag/DragSort')
			},
			{
				path: '/treeNodeDrag',
				component: () => import('components/drag/TreeNodeDrag')
			},
			{
				path: '/radioTest',
				component: () => import('components/radio/RadioTest')
			},
			{
				path: '/dynamicTable',
				component: () => import('components/table/DynamicTableTest')
			},

		]
	},
];

const router = new VueRouter({
	routes
});

export default router
